import {Component} from 'react'
import imgFile from './assets/images/2.png'
class App extends Component{
    render(){
        return <div>
            <h3>网络图片</h3>
            <img src="https://images.unsplash.com/photo-1552728089-57bdde30beb3?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=400&ixid=MnwxfDB8MXxyYW5kb218MHx8YW5pbWFsfHx8fHx8MTY4MzY4NTI4Ng&ixlib=rb-4.0.3&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=500" alt="" />
            <h3>本地图片</h3>
            <img src={require("./assets/images/1.jpg")} alt="" />
            <h3>本地图片</h3>
            <img src={imgFile} alt="" />
        </div>
    }
}
export default App;